<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<!--mod属性还用于控制一定记录的换行-->
<table border="1">
    <tr>
        <td>序号</td>
        <td>标题</td>
        <td>内容</td>
        <td>类型</td>
    </tr>
    {volist name="arr" id="vo" mod="2"}
    <tr  {eq name="mod" value="0"}
         style="color: red;"
         {else}
         style="color: blue;"
         {/eq}>
    <td><{$vo['id']}></td>
    <td><{$vo['title']}></td>
    <td><{$vo['content']}></td>
    <td><{$vo['type']}></td>
    </tr>
    {/volist}
</table>
<hr>
</body>
</html>
